<ion-view view-title="营销列表">
  <ion-nav-buttons side="right">
    <a  class="scor-color-gr-font button button-icon icon ion-ios-cart-outline" ng-click="goToCart()"></a>
  </ion-nav-buttons>
  <ion-content>
    <ion-refresher on-refresh="doRefresh()"
                   pulling-text="下拉刷新..."
                   refreshing-text="拼命加载中..."
                   refreshing-icon="ion-loading-b">
    </ion-refresher>
    <ion-list>
      <ion-item class="item">
        <div class="bar bar-header item-input-inset" style="padding-top: 0">
          <label class="item-input-wrapper  ">
            <input type="search" ng-model="search.searchInput" class="item-input color-444 font-size-18p" placeholder="输入商品名称">
          </label>
          <a class="button button-assertive" style="margin-left:-5px!important; " ng-click="searchGood(search.searchInput,0)">
            <i class="icon ion-ios-search"></i>
          </a>
        </div>
        <div  class=" padding">
          <span ng-show="loadFinish.flag"
                class=" button button-outline button-large button-positive button-block"
                style="width:100%;display: block;float: left;"
                ng-click="marketType(0)" >全部商品</span>
          <!--<span ng-repeat="Type in MarketTypes"
                class=" button  margin-top-sm-scor  button-assertive"
                style="width: 100%;display: block;float: left;"
                ng-click="marketType(Type.id)"
                ng-bind="Type.title"></span>-->
        </div>

          <div class="" >
              <div class="row " ng-repeat="Types in MarketTypes">
                  <div class="col" ng-repeat="Type in Types" >
                      <button
                              class="button button-outline button-large button-positive button-block"
                              ng-click="marketType(Type.id)"
                              ng-bind="Type.title">
                      </button>
                  </div>
              </div>
          </div>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>
